package com.glela.goods.model.vo.goods;

import com.glela.goods.model.GoodsComment;

public class GoodsCommentVo {

	private long goodsCommentId;
	
	private long goodId ;
	
	private long userId ;
	
	private String nickName ;
	
	private String picture ;
	
	private String commentText ;
	
	private String image1 ;
	
	private String image2 ;
	
	private String image3 ;
	
	private String createTime ;
	
	private int status ;
	
	private String specName ;
	
	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public GoodsCommentVo(){}

	public GoodsCommentVo(GoodsComment goodsComment) {
		this.goodsCommentId = goodsComment.getId();
		this.goodId = goodsComment.getGoodId();
		this.userId = goodsComment.getUserId();
		this.commentText = goodsComment.getCommentText();
		if(goodsComment.getImage1() == null){
			this.image1 = "";
		} else {
			this.image1 = goodsComment.getImage1();
		}
		if(goodsComment.getImage2() == null){
			this.image2 = "";
		} else {
			this.image2 = goodsComment.getImage2();
		}
		if(goodsComment.getImage3() == null){
			this.image3 = "";
		} else {
			this.image3 = goodsComment.getImage3();
		}
		this.createTime = goodsComment.getCreateTime();
		this.status = goodsComment.getStatus();
		this.specName = goodsComment.getSpecName();
	}



	public long getGoodsCommentId() {
		return goodsCommentId;
	}

	public void setGoodsCommentId(long goodsCommentId) {
		this.goodsCommentId = goodsCommentId;
	}

	public long getGoodId() {
		return goodId;
	}

	public void setGoodId(long goodId) {
		this.goodId = goodId;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getCommentText() {
		return commentText;
	}

	public void setCommentText(String commentText) {
		this.commentText = commentText;
	}

	public String getImage1() {
		return image1;
	}

	public void setImage1(String image1) {
		this.image1 = image1;
	}

	public String getImage2() {
		return image2;
	}

	public void setImage2(String image2) {
		this.image2 = image2;
	}

	public String getImage3() {
		return image3;
	}

	public void setImage3(String image3) {
		this.image3 = image3;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getSpecName() {
		return specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}
	
}
